.class Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;
.super Ljava/lang/Object;
.source "SlidingItemAnimator.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/ui/recycler/SlidingItemAnimator;->runPendingAnimations()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/util/ArrayList;

.field final synthetic b:Lcom/estrongs/android/ui/recycler/SlidingItemAnimator;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/recycler/SlidingItemAnimator;Ljava/util/ArrayList;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;->b:Lcom/estrongs/android/ui/recycler/SlidingItemAnimator;

    iput-object p2, p0, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;->a:Ljava/util/ArrayList;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    const/4 v0, 0x0

    const/4 v1, -0x1

    const/4 v2, 0x0

    const/4 v3, -0x1

    .line 1
    :goto_0
    iget-object v4, p0, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;->a:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ge v2, v4, :cond_2

    .line 2
    iget-object v4, p0, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;->a:Ljava/util/ArrayList;

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;

    if-ne v3, v1, :cond_0

    .line 3
    invoke-virtual {v4}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->getAdapterPosition()I

    move-result v3

    .line 4
    :cond_0
    invoke-virtual {v4}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->getAdapterPosition()I

    move-result v5

    if-le v3, v5, :cond_1

    .line 5
    invoke-virtual {v4}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->getAdapterPosition()I

    move-result v3

    :cond_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 6
    :cond_2
    :goto_1
    iget-object v1, p0, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_3

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;->a:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;

    .line 8
    iget-object v2, v1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    new-instance v4, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c$a;

    invoke-direct {v4, p0, v1}, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c$a;-><init>(Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)V

    .line 9
    invoke-virtual {v1}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->getAdapterPosition()I

    move-result v1

    sub-int/2addr v1, v3

    iget-object v5, p0, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;->b:Lcom/estrongs/android/ui/recycler/SlidingItemAnimator;

    invoke-static {v5}, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator;->c(Lcom/estrongs/android/ui/recycler/SlidingItemAnimator;)I

    move-result v5

    mul-int v1, v1, v5

    int-to-long v5, v1

    .line 10
    invoke-static {v2, v4, v5, v6}, Landroidx/core/view/ViewCompat;->postOnAnimationDelayed(Landroid/view/View;Ljava/lang/Runnable;J)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 11
    :cond_3
    iget-object v0, p0, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;->b:Lcom/estrongs/android/ui/recycler/SlidingItemAnimator;

    invoke-static {v0}, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator;->d(Lcom/estrongs/android/ui/recycler/SlidingItemAnimator;)Ljava/util/ArrayList;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/ui/recycler/SlidingItemAnimator$c;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    return-void
.end method
